package snake;

import javax.swing.*;
import java.net.URL;

public class Data {

    public static URL headerURL = Data.class.getResource("statics/haeder.png");
    public static URL upmageURL = Data.class.getResource("statics/upmage.png");
    public static URL downURL = Data.class.getResource("statics/down.png");
    public static URL leftURL = Data.class.getResource("statics/left.png");
    public static URL rightURL = Data.class.getResource("statics/right.png");
    public static URL bodyURL = Data.class.getResource("statics/body.png");
    public static URL foodURL = Data.class.getResource("statics/food.png");
    public static ImageIcon header = new ImageIcon(headerURL );//图片标签，让他把图片中的东西画出来
    public static ImageIcon upmage = new ImageIcon(upmageURL );
    public static ImageIcon left = new ImageIcon(leftURL );
    public static ImageIcon right = new ImageIcon(rightURL );
    public static ImageIcon down = new ImageIcon(downURL );
    public static ImageIcon body = new ImageIcon(bodyURL );
    public static ImageIcon food = new ImageIcon(foodURL );

}
